package com.zjw.touchscreen.http;

import com.zjw.touchscreen.http.entity.*;
import okhttp3.ResponseBody;
import retrofit2.Call;
import retrofit2.http.*;

public interface ApiInterface {

    @POST("/admin/login")
    Call<LoginRespVO> login(@Body UserEntity user);

    @POST("/admin/register")
    Call<LoginRespVO> register(@Body UserEntity user);

    @GET("/admin/captchaImage")
    Call<CaptchaImageRespVO> captchaImage();

    @GET("/admin/version/lastVersion")
    Call<LastVersionRespVO> lastVersion(@Query("id") Integer id);

    @Streaming
    @GET("/admin/common/download")
    Call<ResponseBody> download(@Query("fileName") String fileName, @Query("delete") Boolean delete);

    @POST("/admin/buryingPoint/add")
    Call<ResponseBody> buryingPointAdd(@Body BuryingPointEntity buryingPointEntity);
}
